package com.example.springboothello.listener;

import com.example.springboothello.entity.User;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;

public class UserEvent extends ApplicationEvent {
    private User user ;
    public UserEvent(Object source, User user) {
        super(source) ;
        this.user = user ;
    }
    public User getUser() {
        return user;
    }

}
